package fr.generali.sas.domain;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;



@Entity(name="fr.generali.sas.domain.RequestHibernate")
@Table(name = "FLUX")
public class RequestHibernate implements Request{
	
	@Id
	@Column(name="NUM_REQUEST", length=100)
	protected String numRequest;
	
	@OneToMany(targetEntity=FluxHibernate.class)
	@JoinColumn(name="ID")
	protected List<Flux> listFlux;

	public String getNumRequest() {
		return numRequest;
	}

	public void setNumRequest(String numRequest) {
		this.numRequest = numRequest;
	}

	public List<Flux> getListFlux() {
		return listFlux;
	}

	public void setListFlux(List<Flux> listFlux) {
		this.listFlux = listFlux;
	}
	
	

}
